<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#form1 #dateinbegin" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#form1 #dateinend" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>
<style>
    #sel * {
        padding: 2px;
    }
    .status_2,.status_14 {
        color: #c00;
    }
    .status_3 {
        color: blue;
    }
    .status_4 {
        color: #f60;
    }
</style>
<form action="/admini/manageadmin/backlog/" method="get" style="margin:0px" id="form1">
    <div style="border:1px solid #DDDDDD; padding:5px; margin:20px 15px;" id='sel'>
        <label for="starttime">发布时间：</label><input type="text" id="dateinbegin" name="dateinbegin" value="<?php echo $this->dateinbegin; ?>" />
        <label for="endtime">--</label><input type="text" id="dateinend" name="dateinend" value="<?php echo $this->dateinend; ?>" />
        <input type="submit" id="queryButton" value="查询"/>
    </div>
</form>
    <div class="dataTable">
        <table> 
            <tr>
                <th class="w1" width="10%">创建时间</th>
                <th class="w2" width="10%">来源</th>
                <th class="w3" >详情</th>
                <th class="w4" width="10%">处理时间</th>
                <th class="w5" width="10%">状态</th>
                <th class="w6" width="10%">添加人</th>
            </tr> 
            <?php if($this->backloglist != ''){
                foreach ($this->backloglist as $Item) { ?> 
            <tr>
                <td class="w1" nowrap align="center"><?php echo $Item->DateCreated;?></td>
                <td class="w2" nowrap align="center"><?php echo $Item->SourceName;?></td>
                <td class="w3" nowrap align="left"><a href="/admini/manageadmin/backlogdetail/id/<?php echo $Item->Id;?>" class="indexa">
                        <?php echo mb_strlen($Item->Content, 'utf-8') > 40 ? (mb_substr($Item->Content, 0, 40, 'utf-8') . '......') : $Item->Content;?></a></td>
                <td class="w4" nowrap align="center"><?php echo $Item->SolveDay;?>天</td>
                <td class="w5" nowrap align="center"><?php echo $Item->StatusName;?></td>
                <td class="w6" nowrap align="center"><?php echo $Item->Operator;?></td>
            </tr>
            <?php } }?>
        </table>
    </div>                
    <div class="toolbar">
        <?php echo $this->partial('paging.phtml', array("pages" => $this->backlogall,"pamas"=>"quick=".$this->quick."&dateinbegin=$this->dateinbegin&dateinend=$this->dateinend")); ?>
    </div>   
<script type="text/javascript">
    $('#release-button').click(function(){
        location.href='/admini/manageadmin/rebacklog/';
    });
</script>